package com.lhc.springboot_mybatispuls;

import com.lhc.springboot_mybatispuls.service.CustomMultiThreadingService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
//@EntityScan(basePackages = "com.lhc.springboot_mybatispuls.entity.**")
@MapperScan("com.lhc.springboot_mybatispuls.repository.**") //扫描的mapper
@SpringBootApplication
public class SpringbootMybatispulsApplication {
//    @Autowired
//    private static CustomMultiThreadingService customMultiThreadingService;
    public static void main(String[] args) {
        //customMultiThreadingService = new CustomMultiThreadingService();

        SpringApplication.run(SpringbootMybatispulsApplication.class, args);
        //customMultiThreadingService.executeAysncTask1(1);
    }

}
